<?php
/**
 * 功能: 系统消息
 * User: WD
 * Date: 2018/8/27 0027
 * Time: 15:27
 */

namespace app\index\controller;
use think\Controller;
use think\Db;

class News extends Controller{
    /**
     * 系统消息
     */
    public function index(){
        $res = Db::name('news')->where('is_down',1)->select();
        if($res){
            return json(['msg'=>'请求成功','ok'=>true,'data'=>$res]);
        }else{
            return json(['msg'=>'暂无数据','ok'=>false]);
        }
    }

}